package com.cn.ssm.service.impl;

import com.cn.ssm.dao.BureauInfoMapper;
import com.cn.ssm.dao.UserInfoMapper;
import com.cn.ssm.model.BureauInfo;
import com.cn.ssm.model.UserInfo;
import com.cn.ssm.service.BureauInfoService;
import com.cn.ssm.service.UserInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
@Transactional
public class UserInfoServiceImpl implements UserInfoService {

	@Resource
	public UserInfoMapper userInfoMapper;

	@Override
	public UserInfo selectByKeys(UserInfo userInfo) {
		return userInfoMapper.selectByKeys(userInfo);
	}

	@Override
	public List<Map<String,Object>> selectBySeques(String sequencenum) {
		return userInfoMapper.selectBySeques(sequencenum);
	}

	@Override
	public List<Map<String,Object>> selectRoleBySeques(String sequencenum) {
		return userInfoMapper.selectRoleBySeques(sequencenum);
	}

	@Override
	public UserInfo selectByname(String username) {
		return userInfoMapper.selectByname(username);
	}
}
